package com.my12306.train.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my12306.common.model.vo.PageVo;
import com.my12306.train.model.entity.MarshallingEntity;
import com.my12306.train.model.vo.MarshallingCarriageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 列车编组基本信息表
 *
 * @author ËÕÄÁÏ¦
 * @email
 * @date 2020-07-24 20:58:07
 */
@Mapper
public interface MarshallingDao extends BaseMapper<MarshallingEntity> {
    /**
     * 查询所有编组信息
     * @param logicDelete
     * @return
     */
    List<MarshallingCarriageVo> queryAllMarshalling(@Param("pageVo") PageVo pageVo, @Param("logicDelete") int logicDelete);
    /**
     * 根据id查询编组信息
     * @param logicDelete
     * @return
     */
    MarshallingCarriageVo queryAllMarshallingById(@Param("id") Long id, @Param("logicDelete") int logicDelete);
    /**
     * 根据ids批量删除编组
     *
     * @param ids
     * @param logicDelete
     */
    void deleteMarshallingBatchByIds(@Param("list") List<Long> ids, @Param("logicDelete") Integer logicDelete);
}
